<?php

namespace App\Enums;

class RoomEnum
{
    /**********进入房间时长相关*********/
    // 在房间中
    const ROOM_STAY_STATUS_HAS_JOIN = 1;

    // 已离开房间
    const ROOM_STAY_STATUS_HAS_LEAVE = 2;

    /**********收藏类型*********/
    // 收藏
    const ROOM_FAVORITE_TYPE_DO = 1;

    // 取消收藏
    const ROOM_FAVORITE_TYPE_UNDO = 2;

    const ROOM_TYPE_FM     = 26;//电台房
    const ROOM_TYPE_MEET   = 73;//相亲房
    const ROOM_TYPE_PD     = 35;//派单房
    const ROOM_TYPE_PM     = 37;//拍卖房
    // const ROOM_TYPE_SINGLE = 38;//单人房
    const ROOM_TYPE_SINGLE = 40;//单人房 新版本
    const GAME_QA          = 1; //默契问答游戏
    const GAME_ADVENTURE   = 2; //真心冒险游戏
    const RECOMMEND_HOT_ROOM_TYPE_INDEX = [18, 20, 26, 30, 36,73];//首页热门推荐房间类型:女生,娱乐,电台,男生,听歌,相亲

    const ROOM_DEFAULT_COVER = "https://imechos.oss-cn-hangzhou.aliyuncs.com/image/e7bc80badc28b71898ee8dd1ea5366015efb74bd.jpg";

    const USER_NEW_TIME = 259200;//判定新用户的时间标准

    static public function clientRoomType($sysTypeId)
    {
        $list = [
            0 => 0, // 普通房
            self::ROOM_TYPE_FM => 1, // 电台放
            self::ROOM_TYPE_MEET => 2, // 相亲房
            self::ROOM_TYPE_PD => 3, // 派单房
            self::ROOM_TYPE_PM => 4, // 拍卖房
            // self::ROOM_TYPE_SINGLE => 5, // 单人房
            self::ROOM_TYPE_SINGLE => 7, // 新版单人房
            // 6 相亲房
        ];
        return $list[$sysTypeId] ?? 0;
    }
}
